﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user_add.aspx.cs" Inherits="EDP.Application.Web.User.user_add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="form_content" runat="server" />
        <f:HiddenField ID="hide_DepartmentId" runat="server" BindName="DepartmentId" />
        <f:SimpleForm ID="form_content" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="10"
            AutoScroll="false" Margin="0" LabelWidth="40" ValidateRequestMode="Enabled" Layout="Column">
            <Items>
                <f:TextBox ID="tb_Account" runat="server" Label="账号" BindName="Account" Margin="0" ColumnWidth="50%"  ShowRedStar="true"
                    Regex="^[A-Za-z0-9]{4,10}$" RegexMessage="4-10位字母或数字" EmptyText="4-10位字母或数字" />
                <f:TextBox ID="tb_Name" runat="server" Label="姓名" BindName="Name" Margin="0" ColumnWidth="50%"  ShowRedStar="true" />
                <f:RadioButtonList ID="rbl_Gender" runat="server" Label="性别" BindName="GenderId" Margin="10 0 0 0" ColumnWidth="50%"  ShowRedStar="true" />
                <f:TextBox ID="tb_Mobile" runat="server" Label="手机号" BindName="Mobile" Margin="10 0 0 0" ColumnWidth="50%" 
                    Regex="^[1]([3-9])[0-9]{9}$" RegexMessage="手机号格式错误" />
                <f:TextBox ID="tb_Email" runat="server" Label="邮箱" BindName="Email" Margin="10 0 0 0" ColumnWidth="100%" 
                    Regex="^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$" RegexMessage="邮箱格式错误" />
                <f:TriggerBox ID="trb_DepartmenName" runat="server" Label="部门" BindName="DepartmenName" Margin="10 0 0 0" ColumnWidth="100%" 
                    EnableEdit="false" TriggerIcon="Search" AutoPostBack="true" OnTextChanged="trb_DepartmenName_TextChanged" ShowRedStar="true" />
                <f:DropDownList ID="ddl_position" runat="server" Label="职位" BindName="PositionId" Margin="10 0 0 0" ColumnWidth="70%" 
                    AutoPostBack="true" OnSelectedIndexChanged="ddl_position_SelectedIndexChanged" />
                <f:DropDownList ID="ddl_grade" runat="server" BindName="PositionTypeGradeId" Margin="10 0 0 5" ColumnWidth="30%"  />
                <f:TextArea ID="tb_remark" runat="server" Label="描述" BindName="Remarks" Margin="10 0 0 0" ColumnWidth="100%" Height="180"  />
            </Items>
            <Toolbars>
                <f:Toolbar runat="server" Position="Bottom" ToolbarAlign="Right">
                    <Items>
                        <f:Button ID="btn_save" runat="server" Text=" 保 存 " Icon="Disk" Margin="0 10 0 0"  OnClick="btn_save_Click" />
                        <f:Button ID="btn_close" runat="server" Text=" 关 闭 " Icon="Cross" Margin="0 10 0 0" EnablePostBack="false" EnablePermission="false" />
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:SimpleForm>
        <f:Window ID="win_dept" runat="server" Target="Parent" />
    </form>
</body>
</html>
